.theme-settings-drawer {
  .ant-drawer-header {
    border-bottom: 1px solid #f0f0f0;
    
    .ant-drawer-title {
      font-weight: 600;
    }
  }

  .theme-settings-content {
    height: 100%;
    overflow-y: auto;
    
    .setting-section {
      margin-bottom: 24px;
      
      .ant-typography-title {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 16px;
        color: rgba(0, 0, 0, 0.85);
        
        .anticon {
          margin-right: 8px;
          color: #1890ff;
        }
      }
    }

    .layout-styles {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin-bottom: 8px;
      
      .layout-item {
        position: relative;
        border: 2px solid #f0f0f0;
        border-radius: 6px;
        padding: 12px;
        cursor: pointer;
        transition: all 0.3s ease;
        text-align: center;
        
        &:hover {
          border-color: #d9d9d9;
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }
        
        &.active {
          border-color: #1890ff;
          background-color: #f6ffed;
        }
        
        .layout-preview {
          display: flex;
          height: 48px;
          margin-bottom: 8px;
          border-radius: 4px;
          overflow: hidden;
          border: 1px solid #f0f0f0;
          
          .preview-sidebar {
            width: 16px;
            background-color: #001529;
            
            &.small {
              width: 12px;
            }
          }
          
          .preview-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            
            .preview-header {
              height: 12px;
              background-color: #fafafa;
              border-bottom: 1px solid #f0f0f0;
            }
            
            .preview-body {
              flex: 1;
              background-color: #ffffff;
            }
          }
        }
        
        .check-icon {
          position: absolute;
          top: 4px;
          right: 4px;
          color: #52c41a;
          font-size: 12px;
        }
        
        .ant-typography {
          font-size: 12px;
          margin: 0;
        }
      }
    }

    .color-picker {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 8px;
      
      .color-item {
        position: relative;
        width: 32px;
        height: 32px;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid transparent;
        
        &:hover {
          transform: scale(1.1);
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        }
        
        &.active {
          border-color: #ffffff;
          box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.6);
        }
        
        .anticon {
          color: #ffffff;
          font-size: 12px;
        }
      }
    }

    .setting-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 16px;
      
      .setting-label {
        flex: 1;
        
        .ant-typography {
          margin: 0;
          font-size: 14px;
        }
      }
      
      .ant-switch {
        flex-shrink: 0;
      }
      
      .ant-input-number {
        width: 80px;
      }
    }

    .ant-divider {
      margin: 20px 0;
    }
  }
}

// 暗色主题适配
[data-theme='dark'] {
  .theme-settings-drawer {
    .ant-drawer-content {
      background-color: #141414;
    }
    
    .ant-drawer-header {
      background-color: #1f1f1f;
      border-bottom-color: #303030;
      
      .ant-drawer-title {
        color: rgba(255, 255, 255, 0.85);
      }
    }
    
    .setting-section {
      .ant-typography-title {
        color: rgba(255, 255, 255, 0.85);
      }
    }
    
    .layout-item {
      border-color: #303030;
      
      &:hover {
        border-color: #434343;
      }
      
      &.active {
        background-color: #162312;
      }
      
      .layout-preview {
        border-color: #303030;
        
        .preview-header {
          background-color: #1f1f1f;
          border-bottom-color: #303030;
        }
        
        .preview-body {
          background-color: #141414;
        }
      }
    }
    
    .setting-item {
      .ant-typography {
        color: rgba(255, 255, 255, 0.85);
      }
    }
    
    .ant-divider {
      border-color: #303030;
    }
  }
}
